﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FrmEditDCInfo.aspx.cs" Inherits="ExamV5.OnLineInter.FrmEditDCInfo" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <meta http-equiv="Content-Language" content="zh-cn" />
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <script type="text/javascript"  charset="gb2312"  language="javascript" src="../Image/calendar.js"></script>
    <link href="../Image/STYLE.CSS" rel="stylesheet" type="text/css" />    
    <script type="text/javascript" language="javascript">
        function CheckData() {

            if (document.getElementById("txtEndDate").value == "") {
                alert("请输入结束时间！");
                document.getElementById("txtEndDate").focus();
                return false;
            }
            if (document.getElementById("txtBrowUserCode").value == "") {
                alert("请选择参与投票人员！");
                return false;
            }
            return true;
        }
        function ShowUserList(txtBrowUserName, txtBrowUserCode) {
            var strusername = "";
            var strname = "";
            strname = document.getElementById("txtBrowUserName").value;
            strusername = document.getElementById("txtBrowUserCode").value;
            strtmpusers = textUser(strusername, strname);
            if (strtmpusers != "") {
                strtmpusers = strtmpusers.split("_");
                document.getElementById("txtBrowUserCode").value = strtmpusers[0];
                document.getElementById("txtBrowUserName").value = strtmpusers[1];

            }
        }

        function textUser(usernames, names) {
            strURL = "../ManagSys/FrmSelectUser.aspx?EB=B&TypeValue=Q&strFlag=A&ID=" + document.getElementById("txtID").value;
            var obj = new Object();
            obj.username = usernames;
            obj.name = names;


            var iWidth = 620;
            var iHeight = 650;
            var iTop = (window.screen.availHeight - 30 - iHeight) / 2;
            var iLeft = (window.screen.availWidth - 10 - iWidth) / 2;
            var strvalue = window.open(strURL, "", "height=" + iHeight + ", width=" + iWidth + ", top=" + iTop + ", left=" + iLeft + ",status=no,toolbar=no,menubar=no,location=no");
            if (strvalue == undefined) {
                return window.returnValue;
            }
            else if (strvalue != "")
                return strvalue;
            else
                return false;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server" >

    <table cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
       <tr>
			<td>
				<table cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
					<tr height="33">
						<td width="6"><img src="../Image/SHeadLeft.gif" border="0"></td>
						<td align="center" width="102" background="../Image/SHeadLeft1.gif" height="33"><font color="white"><b>编辑在线调查</b></font></td>
						<td width="7"><img src="../Image/SHeadLeft2.gif" border="0"></td>
						<td  background="../Image/SHeadLeft3.gif" height="33" width="600"></td>
						<td width="10"><img src="../Image/SHeadLeft4.gif" border="0"></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr height="10">
			<td></td>
		</tr>
		<tr>
		    <td>
            
				<table id="table2" borderColor="#cccccc" cellSpacing="0" borderColorDark="#cccccc" cellPadding="0"
							width="99%" align="center" border="1" class="tableStyle">
							<tr height="35">
								<td bgColor="#d4e5f5">&nbsp;<img src="../Image/MenuICO/Choose23.gif" border="0"  style='POSITION:relative;TOP:3px'><strong> <font color="#003399">一、编辑在线调查详细信息</font></strong></td>
							</tr>
                           <tr>
								<td>
									<table id="table3" borderColor="#cccccc" cellSpacing="0" borderColorDark="#cccccc" cellPadding="0"
										width="100%" align="center" border="1" class="tableStyle">
                                        <tr bgColor="#ffffff" height="30">
											<td align="right" width="80"><font color=red>*</font> 调查描述：</td>
											<td align="left">
                                            <asp:textbox id="txtTitleInfo" runat="server" CssClass="text" Width="500px"  Height="250" TextMode=MultiLine></asp:textbox>
                                            </td>
										</tr>
                                        <tr  bgColor="#f5fcfe" height="30">
											<td align="right" width="80"><font color=red>*</font> 投票限制：</td>
											<td align="left"> <asp:RadioButtonList  RepeatLayout="Flow" id="RBLIsIP" runat="server" Width="192px" RepeatDirection="Horizontal">
							<asp:ListItem Value="Y" Selected="True">IP限制</asp:ListItem>
							<asp:ListItem Value="N">IP不限制</asp:ListItem>
						</asp:radiobuttonlist></td>
                                       </tr>
                                        <tr  bgColor="#ffffff" height="30">
											<td align="right" width="80"><font color=red>*</font> 记名方式：</td>
											<td align="left"> <asp:RadioButtonList  RepeatLayout="Flow" id="RBLIsAnony" runat="server" Width="168px" RepeatDirection="Horizontal">
							<asp:ListItem Value="Y">匿名</asp:ListItem>
							<asp:ListItem Value="N" Selected="True">实名</asp:ListItem>
						</asp:radiobuttonlist></td>
                                       </tr>
                                        
                                        <tr  bgColor="#f5fcfe" height="30">
											<td align="right" width="80"><font color=red>*</font> 查看设置：</td>
											<td align="left"> <asp:RadioButtonList  RepeatLayout="Flow" id="RBLIsAllLook" runat="server" RepeatDirection="Horizontal">
							<asp:ListItem Value="Y" Selected="True">所有人员</asp:ListItem>
							<asp:ListItem Value="N">投票人员</asp:ListItem>
                            <asp:ListItem Value="Z">保密</asp:ListItem>
						</asp:radiobuttonlist>
                                            </td>
                                       </tr>
                                       <tr bgColor="#ffffff" height="30">
											<td align="right" width="80"><font color=red>*</font> 结束时间：</td>
											<td><asp:textbox id="txtEndDate" runat="server" CssClass="text" Width="136px" MaxLength="20" Height="25" onclick="calendar(this)" ></asp:textbox></td>
										</tr>
                                        
                                      <tr bgColor="#f5fcfe" height="30">
											<td align="right" width="80"><font color=red>*</font> 参与人员：</td>
											<td><textarea class="text" style="WIDTH: 500px; HEIGHT: 80px" id="txtBrowUserName" name="txtBrowUserName"  rows="5" readOnly
							cols="54" row="3"><%=strReUserName%></textarea> <A onclick="javascript:ShowUserList('txtBrowUserName','txtBrowUserCode');" href="#" onfocus='this.blur();'>
							<img alt="选择人员信息" src="../image/butChooseA.gif" border="0" style="POSITION:relative;TOP:-25px"></A>
						<input type=hidden  value="<%=strReUserCode%>" name="txtBrowUserCode" id="txtBrowUserCode" /><input type=hidden  value="<%=intID%>" name="txtID" id="txtID" /></td>
										</tr>
									</table>
                                        	
								</td>
							</tr>
                            
                   </table>	
                   <table id="table1" borderColor="#cccccc" cellSpacing="0" borderColorDark="#ffffff" cellPadding="0"
							width="99%" align="center" border="0"><tr>
								            <td align="center"><br /><asp:Button ID="butDefault" runat="server" Text="提  交" 
                                                    CssClass="but2B"  onclick="butDefault_Click" OnClientClick="return CheckData();" /><asp:Button ID="butClose" runat="server" Text="关  闭" CssClass="but2R"  OnClientClick="javascript:window.close();" /></td>
							            </tr>
                   </table>	
                   
            </td>
        </tr> 
         </table>
    </form>
</body>
</html>


